export const mixin = {
  data() {
    return {
      QQid: "2110"
    }
  }
}
export const FootList = [{
    path: 'movie',
    name: "movie",
    text: '电影',
    icon: "icon-movie1"
  },
  {
    path: 'news',
    name: "news",
    text: '资讯',
    icon: "icon-zixun2",
    hot: true
  },
  {
    path: 'shop',
    name: "shop",
    text: '商城',
    icon: "icon-shangcheng"
  },
  {
    path: 'mine',
    name: "mine",
    text: '我的',
    icon: "icon-mine1"
  },
  {
    path: 'cinema',
    name: "cinema",
    text: '影院',
    icon: "icon-cinema2"
  },
]

//防抖
/**
* @desc  防抖函数
* @param func  目标函数
* @param wait 延迟执行毫秒数
  
 */

export function debounce(func, wait) {
  let timeout = null
  return function () {
    let context = this
    let args = arguments
    if (timeout) clearTimeout(timeout)
    timeout = setTimeout(() => {
      func.apply(context, args)
      // args是形参
    }, wait);
  }
}
